FROM 097364988641.dkr.ecr.cn-northwest-1.amazonaws.com.cn/nginx1.18:latest

RUN echo '199.232.69.194 github.global-ssl.fastly.net' >> /etc/hosts \
    && echo '140.82.114.4 github.com' >> /etc/hosts \
    && sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list 
    
ADD dist.tar.gz /root
COPY nginx.conf /etc/nginx/

ENTRYPOINT nginx && tail -f /var/log/nginx/access.log
